package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TbTeacherMapper;
import com.ruoyi.system.domain.TbTeacher;
import com.ruoyi.system.service.ITbTeacherService;

/**
 * 【教师】Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-11
 */
@Service
public class TbTeacherServiceImpl implements ITbTeacherService 
{
    @Autowired
    private TbTeacherMapper tbTeacherMapper;

    /**
     * 查询【教师】
     * 
     * @param id 【教师】主键
     * @return 【教师】
     */
    @Override
    public TbTeacher selectTbTeacherById(Long id)
    {
        return tbTeacherMapper.selectTbTeacherById(id);
    }

    /**
     * 查询【教师】列表
     * 
     * @param tbTeacher 【教师】
     * @return 【教师】
     */
    @Override
    public List<TbTeacher> selectTbTeacherList(TbTeacher tbTeacher)
    {
        return tbTeacherMapper.selectTbTeacherList(tbTeacher);
    }

    /**
     * 新增【教师】
     * 
     * @param tbTeacher 【教师】
     * @return 结果
     */
    @Override
    public int insertTbTeacher(TbTeacher tbTeacher)
    {
        return tbTeacherMapper.insertTbTeacher(tbTeacher);
    }

    /**
     * 修改【教师】
     * 
     * @param tbTeacher 【教师】
     * @return 结果
     */
    @Override
    public int updateTbTeacher(TbTeacher tbTeacher)
    {
        return tbTeacherMapper.updateTbTeacher(tbTeacher);
    }

    /**
     * 批量删除【教师】
     * 
     * @param ids 需要删除的【教师】主键
     * @return 结果
     */
    @Override
    public int deleteTbTeacherByIds(Long[] ids)
    {
        return tbTeacherMapper.deleteTbTeacherByIds(ids);
    }

    /**
     * 删除【教师】信息
     * 
     * @param id 【教师】主键
     * @return 结果
     */
    @Override
    public int deleteTbTeacherById(Long id)
    {
        return tbTeacherMapper.deleteTbTeacherById(id);
    }

    @Override
    public List listTeacherMsg() {
        return tbTeacherMapper.listTeacherMsg();
    }
}
